﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
//
using System.Text;
public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void BtnInsert_Click(object sender, EventArgs e)
    {
        //使用Insert插入字符串操作
        String OldStr = this.LblOldStr.Text;
        //将String实例为动态字符串类型
        StringBuilder NewStr= new StringBuilder(OldStr);

        String InsertStr = this.LblInsertStr.Text;
        NewStr.Insert(2, InsertStr);
        this.LblNewStr.Text = NewStr.ToString();
    }
}
